﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.Master" AutoEventWireup="true"
    CodeBehind="CreateGroup.aspx.cs" Inherits="Event_SG_EWDT.CreateGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Userhead" runat="server">
<title>Create Group</title>
    <style type="text/css">
        .style6
        {
            width: 100%;
        }
        .style8
        {
            width: 388px;
        }
        .style9
        {
            width: 111px;
        }
        .style10
        {
            width: 188px;
        }
    </style>

    <link href="Scripts/jquery.toastmessage.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery.toastmessage.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="newHolder" runat="server">
    <div class="div_main" defaultbutton="">
        <p class="h1">
            &nbsp;&nbsp; Create Group<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1"
                runat="server">
            </ajaxToolkit:ToolkitScriptManager>
        </p>
        <table class="style6">
            <tr>
                <td class="style10">
                    <asp:Label ID="lblCreateGroupName" runat="server" CssClass="lbl_field" Text="Group Name"></asp:Label>
                </td>
                <td class="style8">
                    <asp:TextBox ID="tbxCreateGroupName" runat="server" CssClass="tbx_field"></asp:TextBox>
                </td>
                <td class="style8">
                    <asp:RequiredFieldValidator ID="rfvGroup" runat="server" 
                        ControlToValidate="tbxCreateGroupName" Display="Dynamic" 
                        ErrorMessage="Name Required" ValidationGroup="cg"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    <asp:Label ID="lblCreateGroupDesc" runat="server" CssClass="lbl_field" Text="Description"></asp:Label>
                </td>
                <td class="style8">
                    <asp:TextBox ID="tbxCreateGroupDesc" runat="server" CssClass="tbx_field_multi" TextMode="MultiLine"></asp:TextBox>
                </td>
                <td class="style8">
                    <asp:RequiredFieldValidator ID="rfvDesc" runat="server" 
                        ControlToValidate="tbxCreateGroupDesc" Display="Dynamic" 
                        ErrorMessage="Description Required" ValidationGroup="cg"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    <asp:Label ID="lblCreateGroupPrivacy" runat="server" CssClass="lbl_field" Text="Privacy"></asp:Label>
                </td>
                <td class="style8">
                    <asp:RadioButtonList ID="rdblCreateGroupPrivacy" RepeatDirection="Horizontal" RepeatLayout="Flow"
                        RepeatColumns="3" runat="server" CssClass="rbtn" Width="307px">
                        <asp:ListItem>Public</asp:ListItem>
                        <asp:ListItem>Private</asp:ListItem>
                        <asp:ListItem>Secret</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="style8">
                    <asp:RequiredFieldValidator ID="rfvPrivacy" runat="server" 
                        ControlToValidate="rdblCreateGroupPrivacy" Display="Dynamic" 
                        ErrorMessage="Privacy Required" ValidationGroup="cg"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    <asp:Label ID="lblCreateGroupCategory" runat="server" CssClass="lbl_field" Text="Category"></asp:Label>
                </td>
                <td class="style8">
                    <asp:DropDownList ID="ddlCreateGroupCat" runat="server" CssClass="tbx_field" DataSourceID="GroupTypeSource"
                        DataTextField="GroupTypeName" DataValueField="GroupTypeId">
                        <asp:ListItem>Technology</asp:ListItem>
                        <asp:ListItem>Sports</asp:ListItem>
                        <asp:ListItem>Pets</asp:ListItem>
                    </asp:DropDownList>
                    <asp:ObjectDataSource ID="GroupTypeSource" runat="server" SelectMethod="RetrieveGroupType"
                        TypeName="Event_SG_EWDT.DBMANAGER"></asp:ObjectDataSource>
                </td>
                <td class="style8">
                    <asp:RequiredFieldValidator ID="rfvCategory" runat="server" 
                        ControlToValidate="ddlCreateGroupCat" Display="Dynamic" 
                        ErrorMessage="Category Required" ValidationGroup="cg"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    <asp:Label ID="lblCreateGroupThumbnail" runat="server" CssClass="lbl_field" 
                        Text="Group Thumbnail"></asp:Label>
                </td>
                <td class="style8">
                    <asp:FileUpload ID="fuCreateGroupThumbnail" runat="server" 
                        CssClass="tbx_field" />
                </td>
                <td class="style8">
                    <asp:RegularExpressionValidator ID="revThumb" runat="server" 
                        ControlToValidate="fuCreateGroupThumbnail" Display="Dynamic" 
                        ErrorMessage="Invalid Image File Format" 
                        ValidationExpression=".+[.](jpg|png|gif|bmp|jpeg|JPG|PNG|GIF|BMP|JPEG)$" 
                        ValidationGroup="cg"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;
                    <asp:Label ID="lblCreateGroupLogo" runat="server" CssClass="lbl_field" Text="Group Logo"></asp:Label>
                </td>
                <td class="style8">
                    &nbsp;
                    <br />
                    <asp:FileUpload ID="fuCreateGroupLogo" runat="server" CssClass="tbx_field" />
                </td>
                <td class="style8">
                    <asp:RegularExpressionValidator ID="revLogo" runat="server" 
                        ControlToValidate="fuCreateGroupLogo" Display="Dynamic" 
                        ErrorMessage="Invalid Image File Format" 
                        ValidationExpression=".+[.](jpg|png|gif|bmp|jpeg|JPG|PNG|GIF|BMP|JPEG)$" 
                        ValidationGroup="cg"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;
                </td>
                <td class="style8">
                    &nbsp;</td>
                <td class="style8">
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="style10">
                    &nbsp;
                </td>
                <td class="style8">
                    &nbsp;
                    <asp:Button ID="btnCreateGroup" runat="server" CssClass="btnCreateEvent" Text="Create!"
                        OnClick="btnCreateGroup_Click" ValidationGroup="cg" />
                </td>
                <td class="style8">
                    &nbsp;</td>
                <td class="style9">
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderUser" runat="server">
</asp:Content>
